package p_aop_xml;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    ApplicationContext ac=new ClassPathXmlApplicationContext("p_aop_xml/bean.xml");
	@Test
   public  void testApp1() {
	IUserDao userDao = (IUserDao) ac.getBean("userDao");
	System.out.println(userDao.getClass());
	userDao.save();	
    }
	@Test
	public  void testApp2() {
		OrderDao orderDao=(OrderDao) ac.getBean("orderDao"); 
		System.out.println(orderDao.getClass());
		orderDao.save();	
	    }
}
